.class Lcom/example/m6wmr/IntegralExchangeGift2$1;
.super Landroid/os/Handler;
.source "IntegralExchangeGift2.java"


# annotations
.annotation system Ldalvik/annotation/EnclosingMethod;
    value = Lcom/example/m6wmr/IntegralExchangeGift2;->onCreate(Landroid/os/Bundle;)V
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic this$0:Lcom/example/m6wmr/IntegralExchangeGift2;


# direct methods
.method constructor <init>(Lcom/example/m6wmr/IntegralExchangeGift2;)V
    .locals 0

    .prologue
    .line 1
    iput-object p1, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    .line 123
    invoke-direct {p0}, Landroid/os/Handler;-><init>()V

    return-void
.end method


# virtual methods
.method public handleMessage(Landroid/os/Message;)V
    .locals 14
    .param p1, "msg"    # Landroid/os/Message;

    .prologue
    .line 127
    invoke-super {p0, p1}, Landroid/os/Handler;->handleMessage(Landroid/os/Message;)V

    .line 128
    iget v12, p1, Landroid/os/Message;->what:I

    packed-switch v12, :pswitch_data_0

    .line 239
    :cond_0
    :goto_0
    return-void

    .line 131
    :pswitch_0
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$11(Lcom/example/m6wmr/IntegralExchangeGift2;)Lmyview/PullToRefreshLayout;

    move-result-object v12

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Lmyview/PullToRefreshLayout;->refreshFinish(I)V

    .line 132
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    const/4 v13, 0x0

    invoke-static {v12, v13}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$1(Lcom/example/m6wmr/IntegralExchangeGift2;Z)V

    .line 133
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$12(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;

    move-result-object v12

    const-string v13, ""

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-nez v12, :cond_0

    .line 139
    :try_start_0
    new-instance v7, Lorg/json/JSONObject;

    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$12(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v7, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 140
    .local v7, "jsonObject":Lorg/json/JSONObject;
    const-string v12, "msg"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v6

    .line 141
    .local v6, "jsonArray":Lorg/json/JSONArray;
    const/4 v2, 0x0

    .local v2, "i":I
    :goto_1
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v2, v12, :cond_1

    .line 161
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$13(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/os/Handler;

    move-result-object v12

    const/4 v13, 0x4

    invoke-virtual {v12, v13}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_0
    .catch Lorg/json/JSONException; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_0

    .line 163
    .end local v2    # "i":I
    .end local v6    # "jsonArray":Lorg/json/JSONArray;
    .end local v7    # "jsonObject":Lorg/json/JSONObject;
    :catch_0
    move-exception v1

    .line 165
    .local v1, "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto :goto_0

    .line 142
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "i":I
    .restart local v6    # "jsonArray":Lorg/json/JSONArray;
    .restart local v7    # "jsonObject":Lorg/json/JSONObject;
    :cond_1
    :try_start_1
    invoke-virtual {v6, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 144
    .local v8, "jsonObject2":Lorg/json/JSONObject;
    const-string v12, "id"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 145
    .local v3, "id":Ljava/lang/String;
    const-string v12, "score"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 146
    .local v9, "score":Ljava/lang/String;
    const-string v12, "stock"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 147
    .local v10, "stock":Ljava/lang/String;
    const-string v12, "title"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 148
    .local v11, "title":Ljava/lang/String;
    const-string v12, "img"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 150
    .local v4, "img":Ljava/lang/String;
    new-instance v0, Lbean/IntegralExchangeBean;

    invoke-direct {v0}, Lbean/IntegralExchangeBean;-><init>()V

    .line 151
    .local v0, "bean":Lbean/IntegralExchangeBean;
    invoke-virtual {v0, v3}, Lbean/IntegralExchangeBean;->setId(Ljava/lang/String;)V

    .line 152
    invoke-virtual {v0, v4}, Lbean/IntegralExchangeBean;->setImg(Ljava/lang/String;)V

    .line 153
    invoke-virtual {v0, v9}, Lbean/IntegralExchangeBean;->setScore(Ljava/lang/String;)V

    .line 154
    invoke-virtual {v0, v10}, Lbean/IntegralExchangeBean;->setStock(Ljava/lang/String;)V

    .line 155
    invoke-virtual {v0, v11}, Lbean/IntegralExchangeBean;->setTitle(Ljava/lang/String;)V

    .line 157
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_1
    .catch Lorg/json/JSONException; {:try_start_1 .. :try_end_1} :catch_0

    .line 141
    add-int/lit8 v2, v2, 0x1

    goto :goto_1

    .line 171
    .end local v0    # "bean":Lbean/IntegralExchangeBean;
    .end local v2    # "i":I
    .end local v3    # "id":Ljava/lang/String;
    .end local v4    # "img":Ljava/lang/String;
    .end local v6    # "jsonArray":Lorg/json/JSONArray;
    .end local v7    # "jsonObject":Lorg/json/JSONObject;
    .end local v8    # "jsonObject2":Lorg/json/JSONObject;
    .end local v9    # "score":Ljava/lang/String;
    .end local v10    # "stock":Ljava/lang/String;
    .end local v11    # "title":Ljava/lang/String;
    :pswitch_1
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$11(Lcom/example/m6wmr/IntegralExchangeGift2;)Lmyview/PullToRefreshLayout;

    move-result-object v12

    const/4 v13, 0x1

    invoke-virtual {v12, v13}, Lmyview/PullToRefreshLayout;->refreshFinish(I)V

    .line 172
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    const/4 v13, 0x0

    invoke-static {v12, v13}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$1(Lcom/example/m6wmr/IntegralExchangeGift2;Z)V

    .line 173
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    invoke-virtual {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->waitlogin()V

    goto/16 :goto_0

    .line 178
    :pswitch_2
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->pullToRefreshLayout:Lmyview/PullToRefreshLayout;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$11(Lcom/example/m6wmr/IntegralExchangeGift2;)Lmyview/PullToRefreshLayout;

    move-result-object v12

    const/4 v13, 0x0

    invoke-virtual {v12, v13}, Lmyview/PullToRefreshLayout;->refreshFinish(I)V

    .line 179
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    const/4 v13, 0x0

    invoke-static {v12, v13}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$1(Lcom/example/m6wmr/IntegralExchangeGift2;Z)V

    .line 180
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$12(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;

    move-result-object v12

    const-string v13, ""

    invoke-virtual {v12, v13}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v12

    if-nez v12, :cond_0

    .line 184
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12}, Ljava/util/List;->clear()V

    .line 186
    :try_start_2
    new-instance v7, Lorg/json/JSONObject;

    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->getJsonString:Ljava/lang/String;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$12(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/lang/String;

    move-result-object v12

    invoke-direct {v7, v12}, Lorg/json/JSONObject;-><init>(Ljava/lang/String;)V

    .line 187
    .restart local v7    # "jsonObject":Lorg/json/JSONObject;
    const-string v12, "msg"

    invoke-virtual {v7, v12}, Lorg/json/JSONObject;->getJSONArray(Ljava/lang/String;)Lorg/json/JSONArray;

    move-result-object v6

    .line 188
    .restart local v6    # "jsonArray":Lorg/json/JSONArray;
    const/4 v2, 0x0

    .restart local v2    # "i":I
    :goto_2
    invoke-virtual {v6}, Lorg/json/JSONArray;->length()I

    move-result v12

    if-lt v2, v12, :cond_2

    .line 208
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->h:Landroid/os/Handler;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$13(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/os/Handler;

    move-result-object v12

    const/4 v13, 0x4

    invoke-virtual {v12, v13}, Landroid/os/Handler;->sendEmptyMessage(I)Z
    :try_end_2
    .catch Lorg/json/JSONException; {:try_start_2 .. :try_end_2} :catch_1

    goto/16 :goto_0

    .line 210
    .end local v2    # "i":I
    .end local v6    # "jsonArray":Lorg/json/JSONArray;
    .end local v7    # "jsonObject":Lorg/json/JSONObject;
    :catch_1
    move-exception v1

    .line 212
    .restart local v1    # "e":Lorg/json/JSONException;
    invoke-virtual {v1}, Lorg/json/JSONException;->printStackTrace()V

    goto/16 :goto_0

    .line 189
    .end local v1    # "e":Lorg/json/JSONException;
    .restart local v2    # "i":I
    .restart local v6    # "jsonArray":Lorg/json/JSONArray;
    .restart local v7    # "jsonObject":Lorg/json/JSONObject;
    :cond_2
    :try_start_3
    invoke-virtual {v6, v2}, Lorg/json/JSONArray;->getJSONObject(I)Lorg/json/JSONObject;

    move-result-object v8

    .line 191
    .restart local v8    # "jsonObject2":Lorg/json/JSONObject;
    const-string v12, "id"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v3

    .line 192
    .restart local v3    # "id":Ljava/lang/String;
    const-string v12, "score"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v9

    .line 193
    .restart local v9    # "score":Ljava/lang/String;
    const-string v12, "stock"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v10

    .line 194
    .restart local v10    # "stock":Ljava/lang/String;
    const-string v12, "title"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v11

    .line 195
    .restart local v11    # "title":Ljava/lang/String;
    const-string v12, "img"

    invoke-virtual {v8, v12}, Lorg/json/JSONObject;->getString(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v4

    .line 197
    .restart local v4    # "img":Ljava/lang/String;
    new-instance v0, Lbean/IntegralExchangeBean;

    invoke-direct {v0}, Lbean/IntegralExchangeBean;-><init>()V

    .line 198
    .restart local v0    # "bean":Lbean/IntegralExchangeBean;
    invoke-virtual {v0, v3}, Lbean/IntegralExchangeBean;->setId(Ljava/lang/String;)V

    .line 199
    invoke-virtual {v0, v4}, Lbean/IntegralExchangeBean;->setImg(Ljava/lang/String;)V

    .line 200
    invoke-virtual {v0, v9}, Lbean/IntegralExchangeBean;->setScore(Ljava/lang/String;)V

    .line 201
    invoke-virtual {v0, v10}, Lbean/IntegralExchangeBean;->setStock(Ljava/lang/String;)V

    .line 202
    invoke-virtual {v0, v11}, Lbean/IntegralExchangeBean;->setTitle(Ljava/lang/String;)V

    .line 203
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->beans:Ljava/util/List;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$4(Lcom/example/m6wmr/IntegralExchangeGift2;)Ljava/util/List;

    move-result-object v12

    invoke-interface {v12, v0}, Ljava/util/List;->add(Ljava/lang/Object;)Z
    :try_end_3
    .catch Lorg/json/JSONException; {:try_start_3 .. :try_end_3} :catch_1

    .line 188
    add-int/lit8 v2, v2, 0x1

    goto :goto_2

    .line 221
    .end local v0    # "bean":Lbean/IntegralExchangeBean;
    .end local v2    # "i":I
    .end local v3    # "id":Ljava/lang/String;
    .end local v4    # "img":Ljava/lang/String;
    .end local v6    # "jsonArray":Lorg/json/JSONArray;
    .end local v7    # "jsonObject":Lorg/json/JSONObject;
    .end local v8    # "jsonObject2":Lorg/json/JSONObject;
    .end local v9    # "score":Ljava/lang/String;
    .end local v10    # "stock":Ljava/lang/String;
    .end local v11    # "title":Ljava/lang/String;
    :pswitch_3
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->xlv_integral_exchange:Landroid/widget/GridView;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$14(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/widget/GridView;

    move-result-object v12

    iget-object v13, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->adapter:Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;
    invoke-static {v13}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$15(Lcom/example/m6wmr/IntegralExchangeGift2;)Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

    move-result-object v13

    invoke-virtual {v12, v13}, Landroid/widget/GridView;->setAdapter(Landroid/widget/ListAdapter;)V

    .line 222
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->xlv_integral_exchange:Landroid/widget/GridView;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$14(Lcom/example/m6wmr/IntegralExchangeGift2;)Landroid/widget/GridView;

    move-result-object v12

    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->setListViewHeightBasedOnChildren(Landroid/widget/GridView;)V

    .line 223
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    # getter for: Lcom/example/m6wmr/IntegralExchangeGift2;->adapter:Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;
    invoke-static {v12}, Lcom/example/m6wmr/IntegralExchangeGift2;->access$15(Lcom/example/m6wmr/IntegralExchangeGift2;)Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;

    move-result-object v12

    invoke-virtual {v12}, Lcom/example/m6wmr/IntegralExchangeGift2$MyAdapter;->notifyDataSetChanged()V

    goto/16 :goto_0

    .line 229
    :pswitch_4
    new-instance v5, Landroid/content/Intent;

    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    .line 230
    const-class v13, Lcom/example/m6wmr/LoginActivity;

    .line 229
    invoke-direct {v5, v12, v13}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 231
    .local v5, "intent":Landroid/content/Intent;
    iget-object v12, p0, Lcom/example/m6wmr/IntegralExchangeGift2$1;->this$0:Lcom/example/m6wmr/IntegralExchangeGift2;

    const/16 v13, 0x64

    invoke-virtual {v12, v5, v13}, Lcom/example/m6wmr/IntegralExchangeGift2;->startActivityForResult(Landroid/content/Intent;I)V

    goto/16 :goto_0

    .line 128
    :pswitch_data_0
    .packed-switch 0x1
        :pswitch_0
        :pswitch_1
        :pswitch_2
        :pswitch_3
        :pswitch_4
    .end packed-switch
.end method
